package crawler.common;

import hapax.Template;
import hapax.TemplateLoader;
import hapax.TemplateResourceLoader;

/**
 *
 * @author vuln2
 */
public class RenderModel {

    public static Template getCTemplate(String tpl) throws Exception {
        TemplateLoader templateLoader = TemplateResourceLoader.create("crawler/view/");
        Template template = templateLoader.getTemplate(tpl);
        return template;
    }

    public static Template getAdminCTemplate(String tpl) throws Exception {
        TemplateLoader templateLoader = TemplateResourceLoader.create("crawler/admin/view/");
        Template template = templateLoader.getTemplate(tpl);
        return template;
    }
}
